import 'package:flutter/material.dart';
import 'package:pos_link_print/pos_link_print.dart';


void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  var dataMsg = "";
  @override
  void initState() {
    super.initState();
  }
  PosLinkPrint posLinkPrint = PosLinkPrint();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('POS Link App 插件测试003 打包正式证书'),
        ),
        body: SingleChildScrollView(
          child: Center(
            child:Column(
                children: [
                  Text(dataMsg),
                  Center(
                    child: ElevatedButton(
                      onPressed: () async {
                      },
                      child: const Text("打印图片"),
                    ),
                  ),
                ]
            ),
          ),
        ),
      ),
    );
  }
}
